(function(){
    $.ajax({
        url: '../Api/index.php?p=back&m=index&a=isLogin',
        type: 'POST',
        dataType: 'json',
        data: {
        },
    }).done(function (data) {
        // console.log(data)
        if(data.code == 200){
            // console.log(data)
        }else{
            window.location.href = "login.html";
        }
    }).fail(function (data) {
        console.log(data);
    });
})()